"""
    1.从tusharp中获取所有股票的列表
    2.2只股票的日线行情，时间1个月
"""

# * 接口的token 0ae9bc2d528e7f8d74efc0e89a19ae9818300540cc5189228963235f
# * 使用：tushare 模块

# import tushare as ts

# todo 01
# ts.set_token('0ae9bc2d528e7f8d74efc0e89a19ae9818300540cc5189228963235f')
# pro = ts.pro_api()
# data = pro.stock_basic(exchange='', list_status='L',
#                        fields='ts_code,symbol,name,area,industry,list_date')
# print(data)

# todo 02
# df = pro.daily(ts_code='000001.SZ,000002.SZ', 
#                start_date='20180701', end_date='20180731')
# print(df)
# ? 为了减少调用保存下来数据
# df.to_csv(r'.\Exercise\2021-01-14\01.csv', sep=',', index=True, header=True)
import pandas as pd
df = pd.read_csv(r'.\Exercise\2021-01-14\01.csv', sep=',')

# ! 独立两样本t检测

# ! 线性回归

# ! 表格折线图